package com.lry.basic.jvm.classLoader;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/12/4
 */
public class ClassLoaderTest2 {
    public static void main(String[] args) {
        ClassLoader cl1 = ClassLoaderTest2.class.getClassLoader();
        System.out.println(cl1);//app  java
        System.out.println(cl1.getParent());//ext 扩展类加载器 java
        System.out.println(cl1.getParent().getParent());//bootstrap 启动类加载器 c++  返回null，说明是启动类加载器
    }
}
